﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccessLayer.Models;

namespace PresentationLayerWebForm
{
    public partial class AppDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int AppID = Convert.ToInt32(Request.Params.Get("ApplicationID"));

            lblAppId.Text = AppID.ToString();
            lblStatus.Text = Request.Params.Get("Status").ToString();

            ViewAppDetailModel summary = new ViewAppDetailModel(AppID);
            GridAppDetail.DataSource = summary.getAppDetail();
            GridAppDetail.DataBind();

        }
    }
}